package com.itheima.Jiuye09;

import java.util.TreeSet;

public class TestStudent {
    public static void main(String[] args) {
        TreeSet<Student> ts = new TreeSet<>();
        Student stu = new Student("xiaomin",100,50,50);
        Student stu1 = new Student("wangmaz",60,60,60);
        Student stu2 = new Student("huahua",70,70,70);
        Student stu3 = new Student("meimei",80,80,40);
        ts.add(stu);
        ts.add(stu1);
        ts.add(stu2);
        ts.add(stu3);
        System.out.println(ts);
    }
}
